#include<bits/stdc++.h>
using namespace std;

void ulRev(string &s)
{
	int len = s.size();
	for(int i = 0;i < len;i++)
	{
		if('a' <= s[i] && s[i] <= 'z')
			s[i] -= 'a'-'A';
		else if('A' <= s[i] && s[i] <= 'Z')
			s[i] += 'a'-'A';
	}
}

void shift(string &s)
{
	int len = s.size();
	for(int i = 0;i < len;i++)
	{
		s[i] += 3;
		if('z' < s[i] && s[i] < 'z'+4)
			s[i] = s[i]-'z'-1+'a';
		else if('Z' < s[i] && s[i] < 'a')
			s[i] = s[i]-'Z'-1+'A';
	}
}

int main()
{
	string s;
	cin>>s;
	reverse(s.begin(), s.end());
	ulRev(s);
	shift(s);
	cout<<s;
    return 0;
}

